package xhwl.insurance.ui;

import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

import xhwl.insurance.R;
import xhwl.insurance.BaseActivity;

public class RegisterPolicy extends BaseActivity implements OnClickListener{
	ImageView registerpolicy_back;
	private TextView registerpolicy;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_register_policy);
	}
	
	@Override
	public void initViews() {
		// TODO Auto-generated method stub
		initTitleViews();
		registerpolicy = (TextView) findViewById(R.id.registerpolicy);
		registerpolicy.setMovementMethod(ScrollingMovementMethod.getInstance());
	}
	@Override
	protected void setUpTitleView() {
		// TODO Auto-generated method stub
		titleTextView.setText(getString(R.string.regist_tip));
	}
	@Override
	public void initListener() {
		// TODO Auto-generated method stub
		backImageView.setOnClickListener(this);
	}

	@Override
	public void loadData() {
		// TODO Auto-generated method stub
	}


	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.title_left_imageview:
			finish();
			overridePendingTransition(R.anim.outtrans_in, R.anim.outtrans_out);
			break;

		default:
			break;
		}
	}

}
